# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-cffsubr
pkgver=0.2.9
pkgrel=1
pkgdesc="Standalone CFF subroutinizer based on AFDKO tx"
url="https://github.com/adobe-type-tools/cffsubr"
arch="all"
license="Apache-2.0"
depends="py3-fonttools"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/c/cffsubr/cffsubr-$pkgver.tar.gz
	drop-setuptools-git-ls-files.patch"
builddir="$srcdir/cffsubr-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
600b6b63ad70e5f00da0f64dd1410d49af622ac923aea3346c904e47e490410a6205fc5b2c2ddc6c684af04face3c217a2c722141f67d5f8ce5b87543eb363e4  cffsubr-0.2.9.tar.gz
557a816d3ac4591396e448b0138219cbe976bd7119a3cfefb6b803720918902b768280f3bcd844c62ed5ed1e1b59835ef4505d9ad81b6781adfe7d0b556e3b7e  drop-setuptools-git-ls-files.patch
"
